package com.ss.android.wenda.answer.detail2;

import android.content.Context;
import android.view.View;

import com.ss.android.article.base.app.AppData;
import com.ss.android.article.share.e.b;
import com.ss.android.article.share.entity.a;
import com.ss.android.common.lib.MobClickCombiner;
import com.ss.android.common.callback.CallbackCenter;

final class g implements b {
    private final NewAnswerDetailActivity a;

    g(NewAnswerDetailActivity arg1) {
        this.a = arg1;

    }

    public final boolean a(a arg7, View arg8, com.ss.android.article.share.c.a arg9) {
        boolean v1 = true;
        boolean v2 = false;
        if(arg7 != null) {
            switch(arg7.e) {
                case 1: {
                    NewAnswerDetailActivity.b(this.a).saveShareWay(1);
                    return false;
                }
                case 2: {
                    NewAnswerDetailActivity.b(this.a).saveShareWay(2);
                    v1 = false;
                    return v1;
                }
                case 3: {
                    NewAnswerDetailActivity.b(this.a).saveShareWay(3);
                    return false;
                }
                case 4: {
                    label_76:
                    v1 = false;
                    return v1;
                }
                case 12: {
                    label_52:
                    MobClickCombiner.onEvent(this.a, "detail", "pgc_button");
                    return false;
                }
                case 13: {
                    label_46:
                    if(NewAnswerDetailActivity.a(this.a) == null) {
                        return v1;
                    }
                    this.a.onFavorBtnClick();
                    return v1;
                }
                case 14: {
                    int v0_1 = !AppData.isNightMode() ? 1 : 0;
                    this.a.i.aE();
                    CallbackCenter.notifyCallback(com.ss.android.j.b.callbackTypeNightModeChanged, new Object[0]);
                    NewAnswerDetailActivity v2_1 = this.a;
                    String v0_2 = v0_1 != 0 ? "click_to_night" : "click_to_day";
                    MobClickCombiner.onEvent(((Context)v2_1), "detail", v0_2);
                    if(arg9 == null) {
                        return v1;
                    }

                    arg9.f();
                    arg9.e();
                    return v1;
                }
                case 15: {
                    label_57:
                    MobClickCombiner.onEvent(this.a, "detail", "display_setting");
                    return false;
                }
                case 16: {
                    NewAnswerDetailActivity v0 = this.a;
                    if(v0.getArticle() != null) {
                        MobClickCombiner.onEvent(((Context)v0), "detail", "report_button");
                        if(v0.o != null) {
                            v0.o.a(v0.h, v0.d);
                            return v1;
                        } else {
                        }
                        return v1;
                    }
                    else {
                        return  v1;
                    }
                }
            }

            return false;

        }

        return v2;
    }
}

